package com.embhealth.dao;

import com.embhealth.pojo.MemberFile;
import com.github.pagehelper.Page;
import com.embhealth.pojo.CheckItem;
import com.embhealth.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public Member findByTelephone(String telephone);
    public void edit(CheckItem checkItem);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    public Page<Member> findByCondition(String queryString);//member分页查询
    public void add_member(Member member);//member添加
    public void edit_member(Member member);//member编辑
    public Member findById(Integer id);//member添加
    public void deleteById(Integer id);//member删除
    public void del_member(List ids);//批量删除



    public void add(Member member);
    public void edit(Member member);

    public List<Map<String, Object>> ageGroup();
    public MemberFile getmemberfile(String fileNumber);
    //获取当天新增的会员数量
    public Integer findMemberCountByToday();

    //查询当前月对应的会员数量
    Integer findCountByMonths(String month);
}


